package com.oneday.nuo.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;


/**
 * (NuoRoleAuthView)表实体类
 *
 * @author liushuai
 * @since 2021-04-23 18:13:34
 */
@ApiModel(value = "")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("nuo_role_auth_view")
public class NuoRoleAuthViewEntity extends Model<NuoRoleAuthViewEntity> {
    private static final long serialVersionUID = 706190124634602063L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_UUID)
    @NotNull(message = "{id.require}")
    @ApiModelProperty(value = "主键主键")
    private String id;
    /**
     * 角色id
     */
    @NotNull(message = "角色id不能为空")
    @ApiModelProperty(value = "角色id")
    private String roleId;
    /**
     * 权限id
     */
    @NotNull(message = "权限id不能为空")
    @ApiModelProperty(value = "权限id")
    private String authId;
}
